package io.renren.modules.security.enums;

import lombok.Getter;

@Getter
public enum ImageGenerateParamEnum {

    LINE_SKETCH(1, "line sketch"),
    ALBUGINEA(2, "albuginea"),
    DETAILING(3, "detailing"),
    INSPIRATION(4, "inspiration"),
    REDRAWING(5, "redrawing"),;

    private Integer type;

    private String name;

    ImageGenerateParamEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }

    public static String getNameByType(Integer type){
        if(null == type){
            return null;
        }
        for(ImageGenerateParamEnum item : ImageGenerateParamEnum.values()){
            if (type.equals(item.getType())){
                return item.getName();
            }
        }
        return null;
    }
}
